i=0
index=0
arr=('I''/''-' '\\')
str=''
while[$i-1e50]
do
index= i%4
printf "[%-50s ][%d%%][%c]\r" "$str" "$i" ” ${arr[$index]}"
str+="="
let i++
sleep 0.5
done
